<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
				xmlns:ui="http://java.sun.com/jsf/facelets"
				xmlns:h="http://java.sun.com/jsf/html"
				xmlns:a4j="http://richfaces.org/a4j"
				xmlns:rich="http://richfaces.org/rich"
				xmlns:f="http://java.sun.com/jsf/core"
				xmlns:t="http://myfaces.apache.org/tomahawk"
				template="/pages/crud_template.xhtml"> 
				
	<ui:param name="crudBean" value="#{alterarSenhaBean}" />
	
	<ui:define name="requiredFieldsMessage">
		<h:outputText value="#{bundle.todosCamposObrigatorios}" rendered="#{crudBean.updating}"/>
	</ui:define>
	
	<ui:define name="buttonItens">
		<a4j:commandButton value="Alterar Senha" actionListener="#{crudBean.alterar}" reRender="formulario"/>
	</ui:define>
	
	<ui:define name="content">
		<!-- Painel de Edição -->
		<h:panelGroup id="panelGroupDeEdicao" rendered="#{crudBean.updating}">
			<f:subview id="viewEdicao">
				<table style="width: 100%;">
					<tr>
						<td class="tdCor" width="160px;"><h:outputText value="Senha Antiga *"/></td>
						<td class="tdBranco">
							<h:inputSecret value="#{crudBean.entity.filtro.senhaAntiga}" styleClass="baseField" maxlength="10"/>
						</td>
					</tr>
					<tr>
						<td class="tdCor"><h:outputText value="Senha Nova *"/></td>
						<td class="tdBranco">
							<h:inputSecret value="#{crudBean.entity.filtro.senhaNova}" styleClass="baseField" maxlength="10"/>
						</td>
					</tr>
					<tr>
						<td class="tdCor"><h:outputText value="Repetir Senha Nova *"/></td>
						<td class="tdBranco">
							<h:inputSecret value="#{crudBean.entity.filtro.senhaNovaRepetida}" styleClass="baseField" maxlength="10"/>
						</td>
					</tr>
				</table>
			</f:subview>
		</h:panelGroup>
	</ui:define>
	
</ui:composition>